<?php

namespace App\Models;

use App\Models\BaseModel;
use Illuminate\Database\Eloquent\SoftDeletes;
class Role extends BaseModel
{
   use SoftDeletes;
   public $table='sys_roles';

    // 在 Role 模型中
    public function menus()
    {
        return $this->belongsToMany(Menu::class, 'sys_role_menus', 'role_id', 'menu_id');
    }

}
